const antfu = require('@antfu/eslint-config').default

module.exports = antfu({
  rules: {
    'node/prefer-global/process': 0,
    'style/comma-dangle': [2, 'never'],
    'eslint-comments/no-unlimited-disable': 0,
    'no-console': 0,
    'antfu/if-newline': 0,
    'antfu/top-level-function': 0,
    'style/brace-style': ['error', '1tbs', { allowSingleLine: true }],
    'curly': [2, 'multi-line', 'consistent'],
    'prefer-promise-reject-errors': 0
  },
  ignores: [
    '**/node_modules/**',
    '**/.idea/**'
  ]
})
